<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
            perspective: 1000px;
        }
        .box {
            position: relative;
            width: 300px;
            height: 200px;
            margin: 100px auto;
            background: url(./img/pig.jpg) no-repeat center;
            animation: xuanzhuan 5s linear infinite;
            transform-style: preserve-3d;
        }
        .box:hover {
            animation-play-state: paused;
        }
        .box div {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url(./img/dog.jpg) no-repeat center;
        }
        .box div:nth-of-type(1) {
            transform:rotateY(0deg) translateZ(300px) ;
        }
        .box div:nth-of-type(2) {
            transform:rotateY(60deg) translateZ(300px) ;
        }
        .box div:nth-of-type(3) {
            transform:rotateY(120deg) translateZ(300px) ;
        }
        .box div:nth-of-type(4) {
            transform:rotateY(180deg) translateZ(300px) ;
        }
        .box div:nth-of-type(5) {
            transform:rotateY(240deg) translateZ(300px) ;
        }
        .box div:nth-of-type(6) {
            transform:rotateY(300deg) translateZ(300px) ;
        }
        @keyframes xuanzhuan {
            0% {}
            100% {
                transform: rotateY(360deg);
            }
        }
    </style>
</head>
<body>
    <div class="box">
           <div></div>
           <div></div>
           <div></div>
           <div></div>
           <div></div>
           <div></div>
    </div>
</body>
</html>